package com.nengchuan.eic.nceconomy.component;

/**
 * @author : panwen
 * @description : 三维算量相关定时任务
 * @create: 2020/05/29 15:19
 * @version: 1.0.0
 */

import com.nengchuan.eic.nceconomy.service.SwFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class SwFileJob {

    @Autowired
    private SwFileService swFileService;

    /**
     * 定时同步三维算量云文件计算状态
     */
    @Async
    @Scheduled(fixedRate=60000)
    public void configureTasks() {
        swFileService.syncFileComputeStatus();
    }

}
